// Locale mirror of `/[slug]` → renders `/de/`. Re-exports the bare // release page verbatim; only getStaticPaths differs. // // This is a DYNAMIC route (`[slug]`) under a DYNAMIC locale segment, so the // paths to pre-render are the CROSS-PRODUCT of every non-default locale × // every release slug (the bare page enumerates just the slugs; here each slug // is emitted once per non-default locale), e.g. /de/v0-2-0. // // NOTE: `[locale]` and the bare `[slug]` are both single-segment dynamic // routes at the root. `voltro build` only emits the paths getStaticPaths // enumerates, so the static output is unambiguous — the bare `[slug]` never // enumerates a locale code, and only this mirror emits `/de/…`. import { SUPPORTED_LOCALES, DEFAULT_LOCALE } from '../../../lib/locale' import { releases } from '../../../lib/releases' export { default } from '../../[slug]/page' export { renderMode, interactive, loader, meta } from '../../[slug]/page' export const getStaticPaths = async (): Promise< Array<{ params: { locale: string; slug: string } }> > => SUPPORTED_LOCALES .filter((l) => l !== DEFAULT_LOCALE) .flatMap((locale) => releases.map((release) => ({ params: { locale, slug: release.slug } })))